﻿using Castle.ActiveRecord;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OVS.Domain
{
    [ActiveRecord("matchs")]
    public class Matchs : EntityBase
    {
        [Property(NotNull = true, Length = 8)]
        [Required]
        [Display(Name = "场次数")]
        public string MatchNO { get; set; }

        [Property(NotNull = true, Length = 50)]
        [Required(ErrorMessage = "请填写场次名称")]
        [Display(Name = "场次名称")]
        public string MatchName { get; set; }

        [Property(NotNull = true, Length = 255)]
        [Required]
        [Display(Name = "比赛地址")]
        public string MatchAddress { get; set; }

        [Property(NotNull = true)]
        [Required]
        [Display(Name = "比赛时间")]
        public DateTime MatchTime { get; set; }

        [Property]
        [Display(Name ="比赛信息")]
        public string MatchInfo { get; set; }
    }
}
